home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
wdiff004.lha
/
wdiff-0.04
/
cbars.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1992-11-23
|
322b
|
14 lines
#!/bin/sh
# Produce change bars from two revisions of a document.
# Copyright (C) 1992 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1992.
usage="$0 OLD_FILE NEW_FILE"
if [ $# -ne 2 ]; then
echo "$usage"; exit
fi
<bindir>/wdiff -1n $1 $2 |
sed -e 's/^/ /;/{+/s/^ /|/;s/{+//g;s/+}//g'